package com.ysl.fairy_could_class.domain;

public class Class {
    private int id;
    private String classname;
    private String type;

    //get和set方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    //构造函数
    public Class(int id, String classname, String type) {
        this.id = id;
        this.classname = classname;
        this.type = type;
    }
    public Class() {
    }

    //toString方法
    @Override
    public String toString() {
        return "Class{" +
                "id=" + id +
                ", classname='" + classname + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
